package ar.com.e2solver.solver;

import java.util.Comparator;

public class IndividualComparator implements Comparator<Individual> {

	public int compare(Individual o1, Individual o2) {
		int cmp = 0;
		if(o1.getFitnessValue() < o2.getFitnessValue()){
			cmp = -1;
		} else if(o1.getFitnessValue() > o2.getFitnessValue()){
			cmp = 1;
		}
		return cmp;
	}

}
